<%@include file="_header.jsp"%>

<title>${inhoud.manageUsersTitle}</title>
</head>
<body>
    <c:choose>
        <c:when test="${userLevel != 3}">
            <%@include file="errorPage.jsp"%>
        </c:when><c:otherwise>
            <%@include file="_menu.jsp"%>


            <div class="sidebar">

                <div class="redbar"><a href="#"><div id="bar-textcontent">${inhoud.manageUsersTitle}</div></a>
                </div>
                <div id="sidescreen">

                    <ul class="thumbnails">
                        <li class="span4">
                            <div class="thumbnail">
                                <h3>${inhoud.manageUsersTitle}</h3>
                                <img src="icons/Manage_users.png" alt="">

                                <p>${inhoud.manageUsersT}</p>
                            </div>
                        </li>
                        <div class="insertext-thumbnail">
                        </div>
                    </ul>


                </div>



            </div>

            <div class="wrappermain">


                <div class="digitalclass">
                    <div id="subheader">  </div>






                    <div class="main-digital">
                        <table class="subscribedTable" >
                            <tr>
                                <td>id</td>
                                <td><p class="tablefont">${inhoud.firstName}:</p></td>
                                <td><p class="tablefont">${inhoud.lastName}:</p></td>
                                <td><p class="tablefont">${inhoud.username}:</p></td>
                                <td><p class="tablefont">email:</p></td>
                                <td><p class="tablefont">level:</p></td>
                                <td></td>
                                <td></td>
                            </tr>

                            <c:forEach var="gebruikerinfo" items="${gebruikersUitSessie}">    
                                <tr>
                                    <td>
                                        ${gebruikerinfo.ID}
                                    </td>

                                    <td>
                                        ${gebruikerinfo.gebruikersnaam}
                                    </td>
                                    <td>
                                        ${gebruikerinfo.voornaam}
                                    </td>
                                    <td>
                                        ${gebruikerinfo.achternaam}
                                    </td>
                                    <td>
                                        ${gebruikerinfo.email}
                                    </td>
                                    <td>
                                        ${gebruikerinfo.level}                                
                                    </td>
                                    
                                    <td>
                                        <a href="change_user?id=${gebruikerinfo.ID}" style="color:#0000ff">${inhoud.manageUsersT2}</a> |
                                        <a href="javascript:confirmDeleteUser('manage_users/verwijder?id=${gebruikerinfo.ID}')" style="color:#0000ff">${inhoud.manageUsersT3}</a>
                                    </td>
                                     <td></td>
                                     <td></td>
                                     
                               
                                </tr>
                            </c:forEach>  
                        </table>


                    </div>
                </div>
            </div>

        </c:otherwise></c:choose>
</body>
</html>
